package com.xyht.sca_s.student_manage_system.modules.trainingSchool.controller;


import com.xyht.sca_s.student_manage_system.common.annotation.RequestPass;
import com.xyht.sca_s.student_manage_system.common.commonReturn.ResponseResult;
import com.xyht.sca_s.student_manage_system.common.desEncodeAndDecode.annotation.SecretBody;
import com.xyht.sca_s.student_manage_system.modules.trainingSchool.service.SmsTsFeeCategoryService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * <p>
 * 收费类别表 前端控制器
 * </p>
 *
 * @author XYHT
 * @since 2024-05-15
 */
@RestController
@SecretBody
@RequestMapping("/trainingSchool/feeCategory")
public class SmsTsFeeCategoryController {

    @Resource
    private SmsTsFeeCategoryService smsTsFeeCategoryService;

    @RequestPass
    @ApiOperation(value = "收费类别列表")
    @GetMapping("/list")
    public ResponseResult list(@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
                               @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize,
                               @RequestParam(value = "ss", required = false) String ss) {
        return smsTsFeeCategoryService.list(pageNum, pageSize, ss);
    }

}

